package com.wn.class30.entity;

import java.util.ArrayList;
import java.util.List;

public class BusinessExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;
    protected Double lat;//维度
    protected Double lon;//精度

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

    public BusinessExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBusinessIdIsNull() {
            addCriterion("business_id is null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIsNotNull() {
            addCriterion("business_id is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdEqualTo(Integer value) {
            addCriterion("business_id =", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotEqualTo(Integer value) {
            addCriterion("business_id <>", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThan(Integer value) {
            addCriterion("business_id >", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("business_id >=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThan(Integer value) {
            addCriterion("business_id <", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThanOrEqualTo(Integer value) {
            addCriterion("business_id <=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIn(List<Integer> values) {
            addCriterion("business_id in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotIn(List<Integer> values) {
            addCriterion("business_id not in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdBetween(Integer value1, Integer value2) {
            addCriterion("business_id between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotBetween(Integer value1, Integer value2) {
            addCriterion("business_id not between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIsNull() {
            addCriterion("business_name is null");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIsNotNull() {
            addCriterion("business_name is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessNameEqualTo(String value) {
            addCriterion("business_name =", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotEqualTo(String value) {
            addCriterion("business_name <>", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameGreaterThan(String value) {
            addCriterion("business_name >", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameGreaterThanOrEqualTo(String value) {
            addCriterion("business_name >=", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLessThan(String value) {
            addCriterion("business_name <", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLessThanOrEqualTo(String value) {
            addCriterion("business_name <=", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLike(String value) {
            addCriterion("business_name like", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotLike(String value) {
            addCriterion("business_name not like", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIn(List<String> values) {
            addCriterion("business_name in", values, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotIn(List<String> values) {
            addCriterion("business_name not in", values, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameBetween(String value1, String value2) {
            addCriterion("business_name between", value1, value2, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotBetween(String value1, String value2) {
            addCriterion("business_name not between", value1, value2, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessTelIsNull() {
            addCriterion("business_tel is null");
            return (Criteria) this;
        }

        public Criteria andBusinessTelIsNotNull() {
            addCriterion("business_tel is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessTelEqualTo(String value) {
            addCriterion("business_tel =", value, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelNotEqualTo(String value) {
            addCriterion("business_tel <>", value, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelGreaterThan(String value) {
            addCriterion("business_tel >", value, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelGreaterThanOrEqualTo(String value) {
            addCriterion("business_tel >=", value, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelLessThan(String value) {
            addCriterion("business_tel <", value, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelLessThanOrEqualTo(String value) {
            addCriterion("business_tel <=", value, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelLike(String value) {
            addCriterion("business_tel like", value, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelNotLike(String value) {
            addCriterion("business_tel not like", value, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelIn(List<String> values) {
            addCriterion("business_tel in", values, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelNotIn(List<String> values) {
            addCriterion("business_tel not in", values, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelBetween(String value1, String value2) {
            addCriterion("business_tel between", value1, value2, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessTelNotBetween(String value1, String value2) {
            addCriterion("business_tel not between", value1, value2, "businessTel");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrIsNull() {
            addCriterion("business_addr is null");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrIsNotNull() {
            addCriterion("business_addr is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrEqualTo(String value) {
            addCriterion("business_addr =", value, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrNotEqualTo(String value) {
            addCriterion("business_addr <>", value, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrGreaterThan(String value) {
            addCriterion("business_addr >", value, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrGreaterThanOrEqualTo(String value) {
            addCriterion("business_addr >=", value, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrLessThan(String value) {
            addCriterion("business_addr <", value, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrLessThanOrEqualTo(String value) {
            addCriterion("business_addr <=", value, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrLike(String value) {
            addCriterion("business_addr like", value, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrNotLike(String value) {
            addCriterion("business_addr not like", value, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrIn(List<String> values) {
            addCriterion("business_addr in", values, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrNotIn(List<String> values) {
            addCriterion("business_addr not in", values, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrBetween(String value1, String value2) {
            addCriterion("business_addr between", value1, value2, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessAddrNotBetween(String value1, String value2) {
            addCriterion("business_addr not between", value1, value2, "businessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusIsNull() {
            addCriterion("business_status is null");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusIsNotNull() {
            addCriterion("business_status is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusEqualTo(Integer value) {
            addCriterion("business_status =", value, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusNotEqualTo(Integer value) {
            addCriterion("business_status <>", value, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusGreaterThan(Integer value) {
            addCriterion("business_status >", value, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("business_status >=", value, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusLessThan(Integer value) {
            addCriterion("business_status <", value, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusLessThanOrEqualTo(Integer value) {
            addCriterion("business_status <=", value, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusIn(List<Integer> values) {
            addCriterion("business_status in", values, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusNotIn(List<Integer> values) {
            addCriterion("business_status not in", values, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusBetween(Integer value1, Integer value2) {
            addCriterion("business_status between", value1, value2, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andBusinessStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("business_status not between", value1, value2, "businessStatus");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNull() {
            addCriterion("longitude is null");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNotNull() {
            addCriterion("longitude is not null");
            return (Criteria) this;
        }

        public Criteria andLongitudeEqualTo(Double value) {
            addCriterion("longitude =", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotEqualTo(Double value) {
            addCriterion("longitude <>", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThan(Double value) {
            addCriterion("longitude >", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThanOrEqualTo(Double value) {
            addCriterion("longitude >=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThan(Double value) {
            addCriterion("longitude <", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThanOrEqualTo(Double value) {
            addCriterion("longitude <=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeIn(List<Double> values) {
            addCriterion("longitude in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotIn(List<Double> values) {
            addCriterion("longitude not in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeBetween(Double value1, Double value2) {
            addCriterion("longitude between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotBetween(Double value1, Double value2) {
            addCriterion("longitude not between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNull() {
            addCriterion("latitude is null");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNotNull() {
            addCriterion("latitude is not null");
            return (Criteria) this;
        }

        public Criteria andLatitudeEqualTo(Double value) {
            addCriterion("latitude =", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotEqualTo(Double value) {
            addCriterion("latitude <>", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThan(Double value) {
            addCriterion("latitude >", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThanOrEqualTo(Double value) {
            addCriterion("latitude >=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThan(Double value) {
            addCriterion("latitude <", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThanOrEqualTo(Double value) {
            addCriterion("latitude <=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIn(List<Double> values) {
            addCriterion("latitude in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotIn(List<Double> values) {
            addCriterion("latitude not in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeBetween(Double value1, Double value2) {
            addCriterion("latitude between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotBetween(Double value1, Double value2) {
            addCriterion("latitude not between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andBusinessImgIsNull() {
            addCriterion("business_img is null");
            return (Criteria) this;
        }

        public Criteria andBusinessImgIsNotNull() {
            addCriterion("business_img is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessImgEqualTo(String value) {
            addCriterion("business_img =", value, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgNotEqualTo(String value) {
            addCriterion("business_img <>", value, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgGreaterThan(String value) {
            addCriterion("business_img >", value, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgGreaterThanOrEqualTo(String value) {
            addCriterion("business_img >=", value, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgLessThan(String value) {
            addCriterion("business_img <", value, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgLessThanOrEqualTo(String value) {
            addCriterion("business_img <=", value, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgLike(String value) {
            addCriterion("business_img like", value, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgNotLike(String value) {
            addCriterion("business_img not like", value, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgIn(List<String> values) {
            addCriterion("business_img in", values, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgNotIn(List<String> values) {
            addCriterion("business_img not in", values, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgBetween(String value1, String value2) {
            addCriterion("business_img between", value1, value2, "businessImg");
            return (Criteria) this;
        }

        public Criteria andBusinessImgNotBetween(String value1, String value2) {
            addCriterion("business_img not between", value1, value2, "businessImg");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrIsNull() {
            addCriterion("long_business_addr is null");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrIsNotNull() {
            addCriterion("long_business_addr is not null");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrEqualTo(String value) {
            addCriterion("long_business_addr =", value, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrNotEqualTo(String value) {
            addCriterion("long_business_addr <>", value, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrGreaterThan(String value) {
            addCriterion("long_business_addr >", value, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrGreaterThanOrEqualTo(String value) {
            addCriterion("long_business_addr >=", value, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrLessThan(String value) {
            addCriterion("long_business_addr <", value, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrLessThanOrEqualTo(String value) {
            addCriterion("long_business_addr <=", value, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrLike(String value) {
            addCriterion("long_business_addr like", value, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrNotLike(String value) {
            addCriterion("long_business_addr not like", value, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrIn(List<String> values) {
            addCriterion("long_business_addr in", values, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrNotIn(List<String> values) {
            addCriterion("long_business_addr not in", values, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrBetween(String value1, String value2) {
            addCriterion("long_business_addr between", value1, value2, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andLongBusinessAddrNotBetween(String value1, String value2) {
            addCriterion("long_business_addr not between", value1, value2, "longBusinessAddr");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeIsNull() {
            addCriterion("business_qrcode is null");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeIsNotNull() {
            addCriterion("business_qrcode is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeEqualTo(String value) {
            addCriterion("business_qrcode =", value, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeNotEqualTo(String value) {
            addCriterion("business_qrcode <>", value, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeGreaterThan(String value) {
            addCriterion("business_qrcode >", value, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeGreaterThanOrEqualTo(String value) {
            addCriterion("business_qrcode >=", value, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeLessThan(String value) {
            addCriterion("business_qrcode <", value, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeLessThanOrEqualTo(String value) {
            addCriterion("business_qrcode <=", value, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeLike(String value) {
            addCriterion("business_qrcode like", value, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeNotLike(String value) {
            addCriterion("business_qrcode not like", value, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeIn(List<String> values) {
            addCriterion("business_qrcode in", values, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeNotIn(List<String> values) {
            addCriterion("business_qrcode not in", values, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeBetween(String value1, String value2) {
            addCriterion("business_qrcode between", value1, value2, "businessQrcode");
            return (Criteria) this;
        }

        public Criteria andBusinessQrcodeNotBetween(String value1, String value2) {
            addCriterion("business_qrcode not between", value1, value2, "businessQrcode");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}